home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-05-25 | 1.5 KB | 76 lines | [TEXT/MSWD] |
- SETGROUP 1,1
- ERASE A1$
- (This is a box that will accept the file numbers to be downloaded.
- SHELL B1%,9001
- (If no numbers were entered, this will end the procedure
- EMPTY A1$
- IF YES END
- (This adds a comma to the end of the series of file numbers
- IF NO CONCAT A1$,,
- (These two steps set variables which are used latter
- LET EQUAL S1%,1
- LET EQUAL B3%,1
- (This section will divide the series of numbers into individual numbers
- :FINDFILENUMBERS
- (This determines the location of the commas
- INSTR A1%,A1$,B3%,,
- (The next four steps are used to detect the last number in the series
- LENGTH C1%,A1$
- TEST C1% = A%
- IF YES COPYINTO C1$,N
- IF NO COPYINTO C1$,Y
- (These two steps will end the proc. when there are no more numbers
- SUBTRACT A1%,B3%
- (This step finds a file number
- MID$ B1$,B3%,A1%,A1$
- (This goes to a subroutine which downloads a file
- :DOWNLOAD
- TEST S1% = 0
- IF YES JUMPTO MOVEAHEAD
- TYPE 6^M
- PROMPT ?
- PAUSE
- :MOVEAHEAD
- LET EQUAL S1%,1
- TYPE B1$
- TYPE ^M
- ALERT1 Try Again (Y/JUMPTO NOTFOUND
- PROMPT ?
- PAUSE
- TYPE D^M
- PROMPT ?
- PAUSE
- GETGROUP D%,1
- TEST D% = 2
- IF YES JUMPTO AUTODOWNLOAD
- (This is another box that will allow you to change your mind.
- SHELL B2%,9002
- TEST B2% = 1
- IF NO JUMPTO SKIPFILE
- :AUTODOWNLOAD
- TYPE 4^M
- PROMPT ?
- PAUSE
- :NOTFOUND
- TYPE C1$
- TYPE ^M
- PROMPT ?
- PAUSE
- CONTAINS C1$,N
- IF YES END
- :NEXTFILE
- LET EQUAL S1%,0
- ADD A1%,B3%
- ADD A1%,1
- LET EQUAL B3%,A1%
- (This returns the proc. to find another file number
- JUMPTO FINDFILENUMBERS
- :SKIPFILE
- TYPE ^M
- PROMPT ?
- PAUSE
- CONTAINS C1$,N
- IF NO JUMPTO NEXTFILE
- TYPE ^M
- END
-